package com.spark.lola.logistics.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spark.lola.support.common.constant.CommonConstant;
import com.spark.lola.support.mybatis.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author: Zhi-peng wang
 * @date: 2020/05/11 18:26
 * 回头车信息
 **/
@Getter
@Setter
@ApiModel(value = "CarSubscribe", description = "回头车信息")
@TableName("logistics_car_subscribe")
public class CarSubscribe extends BaseModel {

    @ApiModelProperty(name = "drivingId", value = "驾驶员id")
    private Long drivingId;

    @ApiModelProperty(name = "drivingName", value = "驾驶员名称")
    private String drivingName;

    @ApiModelProperty(name = "drivingPhone", value = "驾驶员手机号")
    private String drivingPhone;

    @ApiModelProperty(name = "carId", value = "车辆id")
    private Long carId;

    @ApiModelProperty(name = "carNo", value = "车牌号")
    private String carNo;

    @ApiModelProperty(name = "startAreaIds", value = "始发地省市区Ids")
    private String startAreaIds;

    @ApiModelProperty(name = "startArea", value = "始发地省市区")
    private String startArea;

    @ApiModelProperty(name = "startAddress", value = "始发地详细地址")
    private String startAddress;

    @ApiModelProperty(name = "endAreaIds", value = "目的地省市区Ids")
    private String endAreaIds;

    @ApiModelProperty(name = "endArea", value = "目的地省市区")
    private String endArea;

    @ApiModelProperty(name = "endAddress", value = "目的地详细地址")
    private String endAddress;

    @ApiModelProperty(name = "used", value = "状态", notes = "W-待预订，Y-已预订，N-已过期，C-待审核")
    private String used = CommonConstant.W;

    @ApiModelProperty(name = "subscribeId", value = "预订人id")
    private Long subscribeId;

    @ApiModelProperty(name = "subscribeName", value = "预订人名称")
    private String subscribeName;

    @ApiModelProperty(name = "subscribePhone", value = "预订人手机号")
    private String subscribePhone;

    @ApiModelProperty(name = "subscribeTime", value = "预订时间")
    private Date subscribeTime;

    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

    @ApiModelProperty(name = "createTime", value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(name = "expireTime", value = "过期时间")
    private Date expireTime;

}
